﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Admin_Login" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>网非后台管理系统-登录</title>
    <style type="text/css">

   body 
   { 
       background-image: url(Img/login.png);
       background-size:cover;
    }

</style>
    <link href="../css/assets/css/bootstrap.min.css" rel="stylesheet" />
    <link href="../css/assets/css/ace.min.css" rel="stylesheet" />
    <script src="../css/assets/js/jquery-1.10.2.min.js"></script>
</head>
<body class="login-layout">
    <form id="form1" runat="server">
        <div class="main-container">
            <div class="main-content">
                <div class="row">
                    <div class="col-sm-10 col-sm-offset-1">
                        <div class="login-container">
                            <div class="center">
                                <h1>
                                    <i class="icon-leaf green"></i>
                                    <span class="white" style="font-size:25px">网非-后台管理系统</span>
                                </h1>
                            </div>
                            <div class="space-6"></div>
                            <div class="position-relative">
                                <div class="login-box visible widget-box no-border">
                                    <div class="widget-body">
                                        <div class="widget-main">
                                            <h4 class="header blue lighter bigger">
                                                <i class="icon-coffee green"></i>
                                                请输入您的登录信息
                                            </h4>
                                            <div class="space-6"></div>
                                            <label class="block clearfix">
                                                <span class="block input-icon input-icon-right">
                                                    <input id="txtUserName" runat="server" type="text" class="form-control" placeholder="用户名" />
                                                    <i class="icon-user"></i>
                                                </span>
                                            </label>
                                            <label class="block clearfix">
                                                <span class="block input-icon input-icon-right">
                                                    <input id="txtPwd" runat="server" type="password" class="form-control" placeholder="密码" />
                                                    <i class="icon-lock"></i>
                                                </span>
                                            </label>
                                            <label class="block clearfix">
                                                <span class="block input-icon input-icon-right">
                                                    <asp:TextBox id="txtAuth" runat="server"  placeholder="验证码" style="width:200px; height:35px; vertical-align:top"/>
                                                    <img id="imgAuth" src="../Active.aspx" onclick="GetAuth()" style="float:right" />
                                                </span>
                                            </label>
                                            <div class="space"></div>
                                            <div class="clearfix">
                                                <asp:Button ID="btnOK" CssClass="width-35 btn btn-sm btn-primary" runat="server" Text="登录" OnClick="btnOK_Click" />
                                                <asp:Label ID="lblMsg" runat="server" class="text-warning"></asp:Label>
                                            </div>
                                            <div class="space-4"></div>
                                            <div class="social-or-login center">
                                                <span class="bigger-110"></span>
                                            </div>
                                        </div>
                                        <!-- /widget-main -->
                                    </div>
                                    <!-- /widget-body -->
                                </div>
                                <!-- /login-box -->
                            </div>
                            <!-- /position-relative -->
                        </div>
                    </div>
                    <!-- /.col -->
                </div>
                <!-- /.row -->
            </div>
        </div>

        <script type="text/javascript">
            window.jQuery || document.write("<script src='../css/assets/js/jquery-2.0.3.min.js'>" + "<" + "/script>");
        </script>

        <script type="text/javascript">
            if ("ontouchend" in document) document.write("<script src='../css/assets/js/jquery.mobile.custom.min.js'>" + "<" + "/script>");
        </script>

        <script type="text/javascript">
            function show_box(id) {
                jQuery('.widget-box.visible').removeClass('visible');
                jQuery('#' + id).addClass('visible');
            }
        </script>
    </form>
</body>

</html>


<script>
    //跳出Iframe
    if (top.location != self.location)
    { top.location = self.location; }
    function show_box(id) {
        jQuery('.widget-box.visible').removeClass('visible');
        jQuery('#' + id).addClass('visible');
    }

    //点击验证码
    function GetAuth() {
        $("#imgAuth").attr("src", "../Active.aspx?ID=" + Math.random());
    }
</script>


